﻿using System;
using System.Collections.Generic;
using System.Text;
using static xiaodingmarket_Domain.Models.EunmType;

namespace xiaodingmarket_application.ViewModel
{
    public class OrderViewModel
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 购买者或者接悬赏的id
        /// </summary>
        public string Buyer { get; set; }
        /// <summary>
        /// 发布者id
        /// </summary>
        public string Seller { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public OrderCondition Condition { get; set; }
        /// <summary>
        /// 商品或悬赏的唯一标识（做外键？）
        /// </summary>
        public Guid Productid { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public int price { get; set; }
        /// <summary>
        /// 生成订单时间
        /// </summary>
        public DateTime LogTime { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 修改订单者id
        /// </summary>
        public Guid ModifyUserId { get; set; }
        
    }
}
